* RMatch1955y2001control.sps.
* Match patients with teeth filled in March 2000 against other
* teeth treated in year ending March 2001.
* Written by PSKL on 28/11/01.
* Amended on 17/02/03.

* Restrict March 2000 data to fillings.

get file = 'D:\PSKL\Rteeth195510003to10103.sav'.

select if ( fsched = 10003).

select if ( any( trtcode, 1401,1402,1403,1404,1421,1426)).

* save master file of filled teeth (temp1).

Compute Fillrec=1.

save outfile='c:\temp1.sav'.

get file='c:\temp1.sav'.

* save look-up table, one record for each tooth, for matching (temp2).

Compute Filled=1.

sort cases by surname initial sex dobirth tooth quadrant doacc docomp.

Aggregate outfile=* /presorted
 /break surname initial sex dobirth tooth quadrant
 /filled =max(filled)
 /dofacc dofcomp=first(doacc docomp).

save outfile= 'c:\temp2.sav'
 / keep surname initial sex dobirth tooth quadrant filled dofacc dofcomp.

* Create lookup file of patients who have had fillings in March 2000 (temp2A).
* This file contains a dummy quadrant to indicate that at least one tooth in
* the tooth position has been filled.

Aggregate outfile=*/presorted
 /break surname initial sex dobirth tooth
 /dofacc dofcomp=first(dofacc dofcomp).
compute doacc=dofacc.
compute docomp=dofcomp.

string quadrant (A2).
compute quadrant='AA'.

compute fillrec=-1.

save outfile='c:\temp2a.sav'.


* Match against quadrant records for next year, but exclude correction records.

get file = 'D:\PSKL\Rteeth195510003to10103.sav'.

sort cases by surname initial sex dobirth tooth quadrant doacc.

Match files file=*
 /table 'c:\temp2a.sav'
 /by surname initial sex dobirth tooth.

Execute.

select if (not(missing(dofacc)) and not(dofacc=doacc)).

Compute fillrec=0.

Execute.

* Remove quadrants which had fillings in March 2000.

Match files file=*
 /table='c:\temp2.sav'
 /by surname initial sex dobirth tooth quadrant.

If (missing(filled)) filled=0.
select if (filled=0).

Execute.

* Combine with March 2000 dummy quadrant records, when patients received fillings
 in at least one quadrant, to get dates of March 2000 courses of treatment.

Add files file= 'C:\temp2a.sav'
 /file *
 /by surname initial sex dobirth tooth quadrant fillrec.

* Remove additional fee records.

If (missing(trtcode)) trtcode=0.
select if not (range(trtcode,1431,1431,1422,1425,1541,1541,
   1732,1739,1811,1816,2746,2746,5825,5825)).

save outfile='c:\temp3.sav'.

get file='c:\temp3.sav'.

* Reduce to file of teeth not filled in March 2000 schedule but
* where other teeth in the same position were treated then, but treated in following year,
* supplemented by time to failure and
* replacement treatment.

sort cases by surname initial sex dobirth tooth quadrant fillrec doacc trtcode.

aggregate outfile=*
 /presorted
 /break surname initial sex dobirth tooth quadrant fillrec doacc
 / fpcnum persnum partnum suffix postcode docomp exempbox
   trtcode quadcode toothpat exempcod =
 first(fpcnum persnum partnum suffix postcode docomp exempbox
   trtcode quadcode toothpat exempcod)
 /t1=first(trtcode)
 /t2=sum(trtcode)
 /t3=last(trtcode)
 /treats=n.

EXECUTE.

* Calculate time lag for each replacement treatment - up to three per patient.
Do if (fillrec=0 and lag(fillrec)=-1).
compute time=ctime.days(doacc-lag(docomp)).
compute reptrt1=t1.
if (treats=2) reptrt2=t3.
if (treats=3) reptrt2=t2-t1-t3.
if (treats=3) reptrt3=t3.
Compute reptreat=reptrt1.
If (treats>1) reptreat=9999.
End if.

Do if (fillrec=0 and lag(fillrec,2)=-1).
compute time=ctime.days(doacc-lag(docomp,2)).
compute reptrt1=t1.
if (treats=2) reptrt2=t3.
if (treats=3) reptrt2=t2-t1-t3.
if (treats=3) reptrt3=t3.
Compute reptreat=reptrt1.
If (treats>1) reptreat=9999.
End if.

Do if (fillrec=0 and not(lag(fillrec))=-1 and lag(fillrec,3)=-1).
compute time=ctime.days(doacc-lag(docomp,3)).
compute reptrt1=t1.
if (treats=2) reptrt2=t3.
if (treats=3) reptrt2=t2-t1-t3.
if (treats=3) reptrt3=t3.
Compute reptreat=reptrt1.
If (treats>1) reptreat=9999.
End if.

formats trtcode reptreat (f4.0).
formats trtcode reptreat (f4.0) tooth (f1.0).

EXECUTE.

* Tidy up the remaining anomalies.
* Assume negative time cases reflect claims out of sequence.
* Censor all cases at 365 days.
Compute failed=0.
Do if (range(time,1,365)).
compute failed=1.
else.
compute time=365.
end if.
If (missing(time))time=365.

EXECUTE.

* Reduce to one record, for the first retreatment,
* for each quadrant for which the tooth was not treated in March 2000,
* including a dummy quadrant record if the tooth was not retreated.

sort cases by surname initial sex dobirth tooth quadrant time.

Aggregate outfile=* /presorted
 /break surname initial sex dobirth tooth quadrant
 / doacc fpcnum persnum partnum suffix postcode docomp
   exempbox trtcode exempcod time reptreat reptrt1 reptrt2 reptrt3 failed
 =first(doacc fpcnum persnum partnum suffix postcode docomp
   exempbox trtcode exempcod time reptreat reptrt1 reptrt2 reptrt3 failed).

save outfile='D:\pskl\RMatch1955y2001control.sav'.

Get file='D:\pskl\RMatch1955y2001control.sav'.


* Produce some tables.

* a) Proportion of early failures, by tooth position, quadrant, type of filling, and patient sex.

Compute failedPC=100*failed.

autorecode VARIABLES= quadrant sex
 /INTO quadn sexn.

Value Labels
 Tooth TRTCODE
1 '1'
2 '2'
3 '3'
4 '4'
5 '5'
6 '6'
7 '7'
8 '8'
1401 '1401'
1402 '1402'
1403 '1403'
1404 '1404'
1421 '1421'
1426 '1426'.

Variable Labels Tooth 'Tooth Position'
 /quadrant quadn 'Quadrant'
 /trtcode 'Treatment Code'.

Temporary.
select if (any(quadrant,'LL','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - LL Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 18:08:43
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 21888
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - LL Quadrant'.
Resources Elapsed Time 0:00:01.12


Retreatment rates by tooth position and patient sex - LL Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
2.31% 1.42% 1.08% 1.65% 2.93% 2.95% 2.80% 1.61% 2.37%
M
1.32% 1.14% 2.19% 2.41% 3.03% 2.78% 2.92% .29% 2.39%
Summary 1.85% 1.28% 1.60% 2.01% 2.98% 2.87% 2.86% .95% 2.38%

Retreatment rates by tooth position and patient sex - LL Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
780 777 929 1,457 1,806 2,708 2,324 684 11,465
M
681 703 821 1,286 1,651 2,372 2,225 684 10,423
Summary 1,461 1,480 1,750 2,743 3,457 5,080 4,549 1,368 21,888

Temporary.
select if (any(quadrant,'LR','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - LR Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 18:08:44
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 21922
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - LR Quadrant'.
Resources Elapsed Time 0:00:00.80


Retreatment rates by tooth position and patient sex - LR Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
1.42% 1.29% .97% 1.98% 2.56% 4.01% 3.13% .74% 2.55%
M
1.76% 1.14% 2.42% 2.18% 1.96% 2.95% 3.35% 1.16% 2.43%
Summary 1.58% 1.22% 1.65% 2.07% 2.27% 3.52% 3.24% .95% 2.49%

Retreatment rates by tooth position and patient sex - LR Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
774 774 929 1,463 1,799 2,743 2,331 678 11,491
M
681 704 825 1,285 1,634 2,371 2,240 691 10,431
Summary 1,455 1,478 1,754 2,748 3,433 5,114 4,571 1,369 21,922

.

Temporary.
select if (any(quadrant,'UL','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - UL Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 18:08:44
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 22039
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - UL Quadrant'.
Resources Elapsed Time 0:00:00.79


Retreatment rates by tooth position and patient sex - UL Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
3.42% 2.66% 3.25% 3.37% 2.12% 3.59% 2.80% 1.17% 2.93%
M
4.80% 3.32% 3.71% 3.22% 2.19% 3.19% 2.48% 1.30% 2.92%
Summary 4.07% 2.98% 3.47% 3.30% 2.16% 3.41% 2.64% 1.24% 2.93%

Retreatment rates by tooth position and patient sex - UL Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
790 788 953 1,482 1,792 2,728 2,324 682 11,539
M
708 723 835 1,303 1,641 2,380 2,219 691 10,500
Summary 1,498 1,511 1,788 2,785 3,433 5,108 4,543 1,373 22,039

Temporary.
select if (any(quadrant,'UR','AA')).

* Basic Tables.
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION failedpc
  /FTOTAL $t 'Summary'
  /TABLES (sexn > failedpc +  $t )
  BY (tooth +  $t )
  BY ((STATISTICS))
  /STATISTICS
  mean( (PCT7.2 ))
  count( ( COMMA7.0 )) /TITLE  'Retreatment rates by tooth'+
 ' position and patient sex - UR Quadrant'.

Tables

Notes
Output Created 17-FEB-2003 18:08:45
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 22015
Syntax TABLES
/FORMAT BLANK MISSING('.')
/OBSERVATION failedpc
/FTOTAL $t 'Summary'
/TABLES (sexn > failedpc + $t )
BY (tooth + $t )
BY ((STATISTICS))
/STATISTICS
mean( (PCT7.2 ))
count( ( COMMA7.0 )) /TITLE 'Retreatment rates by tooth'+
' position and patient sex - UR Quadrant'.
Resources Elapsed Time 0:00:00.80


Retreatment rates by tooth position and patient sex - UR Quadrant
Mean

Tooth Position Summary
1 2 3 4 5 6 7 8
F
2.93% 2.79% 2.43% 3.31% 3.26% 3.06% 2.97% .44% 2.87%
M
2.59% 3.31% 3.82% 3.15% 1.78% 3.19% 3.09% 1.02% 2.82%
Summary 2.77% 3.04% 3.08% 3.23% 2.56% 3.12% 3.03% .73% 2.85%

Retreatment rates by tooth position and patient sex - UR Quadrant
Count

Tooth Position Summary
1 2 3 4 5 6 7 8
F
786 789 945 1,481 1,809 2,713 2,324 677 11,524
M
694 725 838 1,303 1,631 2,380 2,231 689 10,491
Summary 1,480 1,514 1,783 2,784 3,440 5,093 4,555 1,366 22,015

* b) Replacement treatment , by quadrant.

string retcomb (a14).
compute retcomb=concat(string( reptrt1,f4),'/',string( reptrt2,f4),'/',string( reptrt3,f4)).

Variable Labels retcomb 'Retreatment combination'.

execute.

temporary.
select if ( failed=1).

CROSSTABS
  /TABLES=retcomb  BY quadrant  BY tooth
  /FORMAT= AVALUE TABLES
  /CELLS= COUNT COLUMN .

Crosstabs

Notes
Output Created 17-FEB-2003 18:08:47
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 2339
Missing Value Handling Definition of Missing User-defined missing values are treated as missing.
Cases Used Statistics for each table are based on all the cases with valid data in the specified range(s) for all variables in each table.
Syntax CROSSTABS
/TABLES=retcomb BY quadrant BY tooth
/FORMAT= AVALUE TABLES
/CELLS= COUNT COLUMN .
Resources Dimensions Requested 3
Cells Available 80659
Elapsed Time 0:00:00.96

Case Processing Summary

Cases
Valid Missing Total
N Percent N Percent N Percent
Retreatment combination * quadn 'Quadrant' * Tooth Position 2339 100.0% 0 .0% 2339 100.0%


Retreatment combination * quadn 'Quadrant' * Tooth Position Crosstabulation

quadn 'Quadrant' Total
Tooth Position LL LR UL UR
1 Retreatment combination 1401/ ./ . Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
1401/1421/1501 Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
1401/1501/ . Count
1
1 2
% within quadn 'Quadrant'
4.3%
2.4% 1.3%
1421/ ./ . Count 11 8 22 17 58
% within quadn 'Quadrant' 40.7% 34.8% 36.1% 41.5% 38.2%
1421/1501/ . Count 1 1 2
4
% within quadn 'Quadrant' 3.7% 4.3% 3.3%
2.6%
1426/ ./ . Count 5 1 2 5 13
% within quadn 'Quadrant' 18.5% 4.3% 3.3% 12.2% 8.6%
1501/1782/ . Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
1601/ ./ . Count

2 2 4
% within quadn 'Quadrant'

3.3% 4.9% 2.6%
1711/ ./ . Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
1716/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.6% 2.4% 1.3%
1721/ ./ . Count

6 2 8
% within quadn 'Quadrant'

9.8% 4.9% 5.3%
1722/ ./ . Count


1 1
% within quadn 'Quadrant'


2.4% .7%
1781/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.6% 2.4% 1.3%
1782/ ./ . Count

4 2 6
% within quadn 'Quadrant'

6.6% 4.9% 3.9%
1807/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.6% 2.4% 1.3%
1825/ ./ . Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
1832/ ./ . Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
2101/ ./ . Count 2 2 1
5
% within quadn 'Quadrant' 7.4% 8.7% 1.6%
3.3%
2101/2733/ . Count 2 2 1
5
% within quadn 'Quadrant' 7.4% 8.7% 1.6%
3.3%
2201/ ./ . Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
2201/2863/ . Count

1
1
% within quadn 'Quadrant'

1.6%
.7%
2733/ ./ . Count 2 2 5 4 13
% within quadn 'Quadrant' 7.4% 8.7% 8.2% 9.8% 8.6%
2745/ ./ . Count

2
2
% within quadn 'Quadrant'

3.3%
1.3%
2863/ ./ . Count


1 1
% within quadn 'Quadrant'


2.4% .7%
3611/ ./ . Count 4 6 3 3 16
% within quadn 'Quadrant' 14.8% 26.1% 4.9% 7.3% 10.5%
Total Count 27 23 61 41 152
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
2 Retreatment combination 1101/ ./ . Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
1401/ ./ . Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
1402/ ./ . Count 1


1
% within quadn 'Quadrant' 5.3%


.8%
1421/ ./ . Count 12 10 12 16 50
% within quadn 'Quadrant' 63.2% 55.6% 26.7% 34.8% 39.1%
1426/ ./ . Count 2 3 6
11
% within quadn 'Quadrant' 10.5% 16.7% 13.3%
8.6%
1426/1501/ . Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
1461/ ./ . Count


1 1
% within quadn 'Quadrant'


2.2% .8%
1501/ ./ . Count


1 1
% within quadn 'Quadrant'


2.2% .8%
1501/1521/1721 Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
1521/ ./ . Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
1601/ ./ . Count

4 2 6
% within quadn 'Quadrant'

8.9% 4.3% 4.7%
1716/ ./ . Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
1721/ ./ . Count

3 2 5
% within quadn 'Quadrant'

6.7% 4.3% 3.9%
1782/ ./ . Count

6 10 16
% within quadn 'Quadrant'

13.3% 21.7% 12.5%
1807/ ./ . Count

1 1 2
% within quadn 'Quadrant'

2.2% 2.2% 1.6%
1825/ ./ . Count


3 3
% within quadn 'Quadrant'


6.5% 2.3%
1825/2201/ . Count


1 1
% within quadn 'Quadrant'


2.2% .8%
1826/ ./ . Count


1 1
% within quadn 'Quadrant'


2.2% .8%
1832/ ./ . Count
1

1
% within quadn 'Quadrant'
5.6%

.8%
2101/ ./ . Count
1
1 2
% within quadn 'Quadrant'
5.6%
2.2% 1.6%
2101/2733/ . Count 2
1
3
% within quadn 'Quadrant' 10.5%
2.2%
2.3%
2201/2733/ . Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
2202/2733/ . Count


1 1
% within quadn 'Quadrant'


2.2% .8%
2733/ ./ . Count 2 2 4 4 12
% within quadn 'Quadrant' 10.5% 11.1% 8.9% 8.7% 9.4%
2745/ ./ . Count


1 1
% within quadn 'Quadrant'


2.2% .8%
2863/ ./ . Count

1
1
% within quadn 'Quadrant'

2.2%
.8%
3611/ ./ . Count
1
1 2
% within quadn 'Quadrant'
5.6%
2.2% 1.6%
Total Count 19 18 45 46 128
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
3 Retreatment combination 1401/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.6% 1.8% 1.1%
1401/1421/ . Count

1
1
% within quadn 'Quadrant'

1.6%
.6%
1402/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.6% 1.8% 1.1%
1421/ ./ . Count 21 14 23 23 81
% within quadn 'Quadrant' 75.0% 48.3% 37.1% 41.8% 46.6%
1421/1426/ . Count

1
1
% within quadn 'Quadrant'

1.6%
.6%
1421/1501/ . Count

4 1 5
% within quadn 'Quadrant'

6.5% 1.8% 2.9%
1426/ ./ . Count
8 6 6 20
% within quadn 'Quadrant'
27.6% 9.7% 10.9% 11.5%
1426/1501/ . Count

2
2
% within quadn 'Quadrant'

3.2%
1.1%
1426/2733/ . Count 1


1
% within quadn 'Quadrant' 3.6%


.6%
1501/1716/ . Count

1
1
% within quadn 'Quadrant'

1.6%
.6%
1501/1721/ . Count

1 1 2
% within quadn 'Quadrant'

1.6% 1.8% 1.1%
1601/ ./ . Count

2 1 3
% within quadn 'Quadrant'

3.2% 1.8% 1.7%
1716/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
1721/ ./ . Count 1
1 4 6
% within quadn 'Quadrant' 3.6%
1.6% 7.3% 3.4%
1781/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
1782/ ./ . Count
1 3 4 8
% within quadn 'Quadrant'
3.4% 4.8% 7.3% 4.6%
1807/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
1825/ ./ . Count


1 1
% within quadn 'Quadrant'


1.8% .6%
2101/2733/ . Count

1 2 3
% within quadn 'Quadrant'

1.6% 3.6% 1.7%
2101/2863/ . Count 2
1 1 4
% within quadn 'Quadrant' 7.1%
1.6% 1.8% 2.3%
2202/ ./ . Count

1
1
% within quadn 'Quadrant'

1.6%
.6%
2733/ ./ . Count 1 4 9 4 18
% within quadn 'Quadrant' 3.6% 13.8% 14.5% 7.3% 10.3%
2743/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.6% 1.8% 1.1%
2744/ ./ . Count
1

1
% within quadn 'Quadrant'
3.4%

.6%
2745/ ./ . Count

1
1
% within quadn 'Quadrant'

1.6%
.6%
3611/ ./ . Count 1 1

2
% within quadn 'Quadrant' 3.6% 3.4%

1.1%
6221/ ./ . Count 1
1 1 3
% within quadn 'Quadrant' 3.6%
1.6% 1.8% 1.7%
Total Count 28 29 62 55 174
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
4 Retreatment combination 1131/1721/ . Count 2 1 1 1 5
% within quadn 'Quadrant' 3.6% 1.8% 1.1% 1.1% 1.7%
1401/ ./ . Count 1 2 2 1 6
% within quadn 'Quadrant' 1.8% 3.5% 2.2% 1.1% 2.0%
1401/1421/1501 Count 1


1
% within quadn 'Quadrant' 1.8%


.3%
1401/1501/ . Count 1 2 1
4
% within quadn 'Quadrant' 1.8% 3.5% 1.1%
1.4%
1402/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1403/ ./ . Count 11 8 15 11 45
% within quadn 'Quadrant' 20.0% 14.0% 16.3% 12.2% 15.3%
1403/1426/ . Count
2 1 1 4
% within quadn 'Quadrant'
3.5% 1.1% 1.1% 1.4%
1403/1501/ . Count 2

1 3
% within quadn 'Quadrant' 3.6%

1.1% 1.0%
1404/ ./ . Count 3
15 10 28
% within quadn 'Quadrant' 5.5%
16.3% 11.1% 9.5%
1404/1501/ . Count

4 1 5
% within quadn 'Quadrant'

4.3% 1.1% 1.7%
1421/ ./ . Count 15 17 16 15 63
% within quadn 'Quadrant' 27.3% 29.8% 17.4% 16.7% 21.4%
1426/ ./ . Count 11 13 10 9 43
% within quadn 'Quadrant' 20.0% 22.8% 10.9% 10.0% 14.6%
1426/2733/ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1441/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1501/ ./ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1501/1721/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1501/1807/ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1711/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1721/ ./ . Count 1 2 3 7 13
% within quadn 'Quadrant' 1.8% 3.5% 3.3% 7.8% 4.4%
1722/ ./ . Count

3 1 4
% within quadn 'Quadrant'

3.3% 1.1% 1.4%
1782/ ./ . Count 1 4 2 8 15
% within quadn 'Quadrant' 1.8% 7.0% 2.2% 8.9% 5.1%
1782/1721/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
1807/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1825/ ./ . Count

1 2 3
% within quadn 'Quadrant'

1.1% 2.2% 1.0%
2101/ ./ . Count
1
5 6
% within quadn 'Quadrant'
1.8%
5.6% 2.0%
2101/2733/ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
2101/2863/ . Count 1 1 2 1 5
% within quadn 'Quadrant' 1.8% 1.8% 2.2% 1.1% 1.7%
2201/ ./ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
2203/ ./ . Count

2
2
% within quadn 'Quadrant'

2.2%
.7%
2733/ ./ . Count 3 3 4 7 17
% within quadn 'Quadrant' 5.5% 5.3% 4.3% 7.8% 5.8%
2744/ ./ . Count

1 2 3
% within quadn 'Quadrant'

1.1% 2.2% 1.0%
2745/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
2863/ ./ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
3611/ ./ . Count 2 1 2
5
% within quadn 'Quadrant' 3.6% 1.8% 2.2%
1.7%
5041/ ./ . Count

1
1
% within quadn 'Quadrant'

1.1%
.3%
Total Count 55 57 92 90 294
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
5 Retreatment combination 1131/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1131/1721/ . Count

1
1
% within quadn 'Quadrant'

1.4%
.3%
1131/1722/ . Count

1
1
% within quadn 'Quadrant'

1.4%
.3%
1401/ ./ . Count 3 4 2 3 12
% within quadn 'Quadrant' 2.9% 5.1% 2.7% 3.4% 3.5%
1401/1421/ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1401/1421/1501 Count

1
1
% within quadn 'Quadrant'

1.4%
.3%
1401/1426/ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1401/1501/ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
1401/1721/ . Count
1

1
% within quadn 'Quadrant'
1.3%

.3%
1402/ ./ . Count 2 1

3
% within quadn 'Quadrant' 1.9% 1.3%

.9%
1402/1403/ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
1403/ ./ . Count 29 17 16 14 76
% within quadn 'Quadrant' 28.2% 21.8% 21.6% 15.9% 22.2%
1403/1501/ . Count 3 1
1 5
% within quadn 'Quadrant' 2.9% 1.3%
1.1% 1.5%
1404/ ./ . Count 7 10 16 14 47
% within quadn 'Quadrant' 6.8% 12.8% 21.6% 15.9% 13.7%
1404/1421/ . Count
1

1
% within quadn 'Quadrant'
1.3%

.3%
1404/1426/ . Count
1

1
% within quadn 'Quadrant'
1.3%

.3%
1404/1501/ . Count 1 2 2
5
% within quadn 'Quadrant' 1.0% 2.6% 2.7%
1.5%
1404/1501/3661 Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1411/ ./ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
1421/ ./ . Count 17 15 8 8 48
% within quadn 'Quadrant' 16.5% 19.2% 10.8% 9.1% 14.0%
1426/ ./ . Count 10 8 4 8 30
% within quadn 'Quadrant' 9.7% 10.3% 5.4% 9.1% 8.7%
1426/1421/ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
1461/ ./ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
1501/ ./ . Count 2


2
% within quadn 'Quadrant' 1.9%


.6%
1501/1704/ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
1501/1721/ . Count
1 1
2
% within quadn 'Quadrant'
1.3% 1.4%
.6%
1501/1722/ . Count

1
1
% within quadn 'Quadrant'

1.4%
.3%
1704/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1721/ ./ . Count 5 4
7 16
% within quadn 'Quadrant' 4.9% 5.1%
8.0% 4.7%
1722/ ./ . Count 2
1
3
% within quadn 'Quadrant' 1.9%
1.4%
.9%
1771/ ./ . Count
1

1
% within quadn 'Quadrant'
1.3%

.3%
1781/ ./ . Count
1 1 2 4
% within quadn 'Quadrant'
1.3% 1.4% 2.3% 1.2%
1782/ ./ . Count 2 3 4 4 13
% within quadn 'Quadrant' 1.9% 3.8% 5.4% 4.5% 3.8%
1782/3661/ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
1807/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.4% 1.1% .6%
1825/ ./ . Count 1

1 2
% within quadn 'Quadrant' 1.0%

1.1% .6%
1831/ ./ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
2101/ ./ . Count 3
2 5 10
% within quadn 'Quadrant' 2.9%
2.7% 5.7% 2.9%
2101/2733/ . Count
1
1 2
% within quadn 'Quadrant'
1.3%
1.1% .6%
2101/2863/ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
2201/ ./ . Count 1

1 2
% within quadn 'Quadrant' 1.0%

1.1% .6%
2733/ ./ . Count 3 1 5 5 14
% within quadn 'Quadrant' 2.9% 1.3% 6.8% 5.7% 4.1%
2743/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.4% 1.1% .6%
2744/ ./ . Count 1 1

2
% within quadn 'Quadrant' 1.0% 1.3%

.6%
2745/ ./ . Count

1 1 2
% within quadn 'Quadrant'

1.4% 1.1% .6%
3611/ ./ . Count 2 2 2 2 8
% within quadn 'Quadrant' 1.9% 2.6% 2.7% 2.3% 2.3%
5001/ ./ . Count
1

1
% within quadn 'Quadrant'
1.3%

.3%
5041/1721/ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
5812/5831/ . Count


1 1
% within quadn 'Quadrant'


1.1% .3%
6301/ ./ . Count 1
3
4
% within quadn 'Quadrant' 1.0%
4.1%
1.2%
6341/ ./ . Count
1

1
% within quadn 'Quadrant'
1.3%

.3%
6351/1501/ . Count 1


1
% within quadn 'Quadrant' 1.0%


.3%
Total Count 103 78 74 88 343
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
6 Retreatment combination 1401/ ./ . Count 9 15 12 8 44
% within quadn 'Quadrant' 6.2% 8.3% 6.9% 5.0% 6.7%
1401/1404/ . Count 1 1

2
% within quadn 'Quadrant' .7% .6%

.3%
1401/1501/ . Count
3 4 2 9
% within quadn 'Quadrant'
1.7% 2.3% 1.3% 1.4%
1402/ ./ . Count 5 8 8 6 27
% within quadn 'Quadrant' 3.4% 4.4% 4.6% 3.8% 4.1%
1402/1403/ . Count
1 1
2
% within quadn 'Quadrant'
.6% .6%
.3%
1402/3661/ . Count 1


1
% within quadn 'Quadrant' .7%


.2%
1403/ ./ . Count 34 43 57 50 184
% within quadn 'Quadrant' 23.3% 23.9% 32.8% 31.4% 27.9%
1403/1421/ . Count
1

1
% within quadn 'Quadrant'
.6%

.2%
1403/1501/ . Count 1 1 1 1 4
% within quadn 'Quadrant' .7% .6% .6% .6% .6%
1403/3661/ . Count 1
1
2
% within quadn 'Quadrant' .7%
.6%
.3%
1404/ ./ . Count 26 39 20 31 116
% within quadn 'Quadrant' 17.8% 21.7% 11.5% 19.5% 17.6%
1404/1421/ . Count 1
1
2
% within quadn 'Quadrant' .7%
.6%
.3%
1404/1501/ . Count 1 1 2 1 5
% within quadn 'Quadrant' .7% .6% 1.1% .6% .8%
1421/ ./ . Count 13 10 14 14 51
% within quadn 'Quadrant' 8.9% 5.6% 8.0% 8.8% 7.7%
1421/1426/ . Count
1

1
% within quadn 'Quadrant'
.6%

.2%
1426/ ./ . Count 15 14 15 9 53
% within quadn 'Quadrant' 10.3% 7.8% 8.6% 5.7% 8.0%
1426/2863/ . Count

1
1
% within quadn 'Quadrant'

.6%
.2%
1501/ ./ . Count 2
3 1 6
% within quadn 'Quadrant' 1.4%
1.7% .6% .9%
1501/1711/ . Count

1
1
% within quadn 'Quadrant'

.6%
.2%
1501/1712/ . Count 1


1
% within quadn 'Quadrant' .7%


.2%
1501/6301/ . Count


1 1
% within quadn 'Quadrant'


.6% .2%
1704/ ./ . Count
1
1 2
% within quadn 'Quadrant'
.6%
.6% .3%
1711/ ./ . Count 6 7 2 5 20
% within quadn 'Quadrant' 4.1% 3.9% 1.1% 3.1% 3.0%
1712/ ./ . Count 1 1 2
4
% within quadn 'Quadrant' .7% .6% 1.1%
.6%
1781/ ./ . Count 1

2 3
% within quadn 'Quadrant' .7%

1.3% .5%
1782/ ./ . Count 4 8 3
15
% within quadn 'Quadrant' 2.7% 4.4% 1.7%
2.3%
1782/1501/ . Count
1

1
% within quadn 'Quadrant'
.6%

.2%
1807/ ./ . Count 1
1 1 3
% within quadn 'Quadrant' .7%
.6% .6% .5%
1825/ ./ . Count
1 1 2 4
% within quadn 'Quadrant'
.6% .6% 1.3% .6%
2101/ ./ . Count 7 6 2 5 20
% within quadn 'Quadrant' 4.8% 3.3% 1.1% 3.1% 3.0%
2101/2733/ . Count


1 1
% within quadn 'Quadrant'


.6% .2%
2201/ ./ . Count 2 3 4 2 11
% within quadn 'Quadrant' 1.4% 1.7% 2.3% 1.3% 1.7%
2203/ ./ . Count 2 1 3 3 9
% within quadn 'Quadrant' 1.4% .6% 1.7% 1.9% 1.4%
2733/ ./ . Count 2 1 4 5 12
% within quadn 'Quadrant' 1.4% .6% 2.3% 3.1% 1.8%
2743/ ./ . Count 1 1 1
3
% within quadn 'Quadrant' .7% .6% .6%
.5%
2744/ ./ . Count 1


1
% within quadn 'Quadrant' .7%


.2%
2745/ ./ . Count

1 1 2
% within quadn 'Quadrant'

.6% .6% .3%
3611/ ./ . Count 5 10 7 4 26
% within quadn 'Quadrant' 3.4% 5.6% 4.0% 2.5% 3.9%
3611/1501/ . Count

1
1
% within quadn 'Quadrant'

.6%
.2%
3661/1501/ . Count 1


1
% within quadn 'Quadrant' .7%


.2%
5001/ ./ . Count


1 1
% within quadn 'Quadrant'


.6% .2%
5201/ ./ . Count
1

1
% within quadn 'Quadrant'
.6%

.2%
5826/ ./ . Count 1


1
% within quadn 'Quadrant' .7%


.2%
5903/ ./ . Count


1 1
% within quadn 'Quadrant'


.6% .2%
6221/ ./ . Count

1 1 2
% within quadn 'Quadrant'

.6% .6% .3%
Total Count 146 180 174 159 659
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
7 Retreatment combination 1102/1403/1501 Count 1


1
% within quadn 'Quadrant' .8%


.2%
1401/ ./ . Count 18 16 6 10 50
% within quadn 'Quadrant' 13.8% 10.8% 5.0% 7.2% 9.3%
1401/1501/ . Count 1 2

3
% within quadn 'Quadrant' .8% 1.4%

.6%
1402/ ./ . Count 8 5 7 9 29
% within quadn 'Quadrant' 6.2% 3.4% 5.8% 6.5% 5.4%
1403/ ./ . Count 34 46 37 37 154
% within quadn 'Quadrant' 26.2% 31.1% 30.8% 26.8% 28.7%
1403/1501/ . Count
1 3 4 8
% within quadn 'Quadrant'
.7% 2.5% 2.9% 1.5%
1404/ ./ . Count 15 15 15 16 61
% within quadn 'Quadrant' 11.5% 10.1% 12.5% 11.6% 11.4%
1404/1501/ . Count
2 1 2 5
% within quadn 'Quadrant'
1.4% .8% 1.4% .9%
1404/1711/ . Count


1 1
% within quadn 'Quadrant'


.7% .2%
1404/3661/ . Count


1 1
% within quadn 'Quadrant'


.7% .2%
1421/ ./ . Count 5 4 3 4 16
% within quadn 'Quadrant' 3.8% 2.7% 2.5% 2.9% 3.0%
1426/ ./ . Count 13 19 11 8 51
% within quadn 'Quadrant' 10.0% 12.8% 9.2% 5.8% 9.5%
1441/ ./ . Count 2


2
% within quadn 'Quadrant' 1.5%


.4%
1444/ ./ . Count 2
1 1 4
% within quadn 'Quadrant' 1.5%
.8% .7% .7%
1461/ ./ . Count 1


1
% within quadn 'Quadrant' .8%


.2%
1501/ ./ . Count 1
1 1 3
% within quadn 'Quadrant' .8%
.8% .7% .6%
1501/1711/ . Count
1
1 2
% within quadn 'Quadrant'
.7%
.7% .4%
1702/ ./ . Count 1


1
% within quadn 'Quadrant' .8%


.2%
1704/ ./ . Count
1 2 1 4
% within quadn 'Quadrant'
.7% 1.7% .7% .7%
1711/ ./ . Count 5 6 4 7 22
% within quadn 'Quadrant' 3.8% 4.1% 3.3% 5.1% 4.1%
1712/ ./ . Count 1 1 1
3
% within quadn 'Quadrant' .8% .7% .8%
.6%
1782/ ./ . Count 3 7
1 11
% within quadn 'Quadrant' 2.3% 4.7%
.7% 2.1%
1807/ ./ . Count
2 1
3
% within quadn 'Quadrant'
1.4% .8%
.6%
2101/ ./ . Count 4 5 9 11 29
% within quadn 'Quadrant' 3.1% 3.4% 7.5% 8.0% 5.4%
2201/ ./ . Count
1 3
4
% within quadn 'Quadrant'
.7% 2.5%
.7%
2203/ ./ . Count 3 1 2 1 7
% within quadn 'Quadrant' 2.3% .7% 1.7% .7% 1.3%
2733/ ./ . Count 3 2 6 3 14
% within quadn 'Quadrant' 2.3% 1.4% 5.0% 2.2% 2.6%
2744/ ./ . Count 1


1
% within quadn 'Quadrant' .8%


.2%
2745/ ./ . Count 1 1
1 3
% within quadn 'Quadrant' .8% .7%
.7% .6%
3611/ ./ . Count 7 9 5 13 34
% within quadn 'Quadrant' 5.4% 6.1% 4.2% 9.4% 6.3%
5201/ ./ . Count


1 1
% within quadn 'Quadrant'


.7% .2%
5813/ ./ . Count


1 1
% within quadn 'Quadrant'


.7% .2%
5826/ ./ . Count


1 1
% within quadn 'Quadrant'


.7% .2%
6201/ ./ . Count

1 1 2
% within quadn 'Quadrant'

.8% .7% .4%
6301/ ./ . Count

1 1 2
% within quadn 'Quadrant'

.8% .7% .4%
6332/1501/ . Count
1

1
% within quadn 'Quadrant'
.7%

.2%
Total Count 130 148 120 138 536
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%
8 Retreatment combination 1401/ ./ . Count 3 2 1
6
% within quadn 'Quadrant' 23.1% 15.4% 5.9%
11.3%
1402/ ./ . Count 2


2
% within quadn 'Quadrant' 15.4%


3.8%
1403/ ./ . Count 6 3 5 4 18
% within quadn 'Quadrant' 46.2% 23.1% 29.4% 40.0% 34.0%
1403/1501/ . Count

1
1
% within quadn 'Quadrant'

5.9%
1.9%
1404/ ./ . Count


2 2
% within quadn 'Quadrant'


20.0% 3.8%
1426/ ./ . Count
1 3
4
% within quadn 'Quadrant'
7.7% 17.6%
7.5%
1711/ ./ . Count
1

1
% within quadn 'Quadrant'
7.7%

1.9%
1781/ ./ . Count


1 1
% within quadn 'Quadrant'


10.0% 1.9%
2101/ ./ . Count 1 1 5 1 8
% within quadn 'Quadrant' 7.7% 7.7% 29.4% 10.0% 15.1%
2201/ ./ . Count
2 1 1 4
% within quadn 'Quadrant'
15.4% 5.9% 10.0% 7.5%
2204/ ./ . Count

1
1
% within quadn 'Quadrant'

5.9%
1.9%
2205/ ./ . Count
1

1
% within quadn 'Quadrant'
7.7%

1.9%
2744/ ./ . Count
1

1
% within quadn 'Quadrant'
7.7%

1.9%
3611/ ./ . Count 1 1
1 3
% within quadn 'Quadrant' 7.7% 7.7%
10.0% 5.7%
Total Count 13 13 17 10 53
% within quadn 'Quadrant' 100.0% 100.0% 100.0% 100.0% 100.0%

* c) Kaplan-Meier Survivor Functions and Hazard functions.

temporary.
select if (any(quadrant,'LL','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:08:48
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 21888
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:03.21

Survival

temporary.
select if (any(quadrant,'LR','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:08:51
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 21922
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:01.93

Survival

temporary.
select if (any(quadrant,'UL','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:08:53
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 22039
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:01.47

Survival

temporary.
select if (any(quadrant,'UR','AA')).
KM
  time  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL.

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:08:55
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 22015
Syntax KM
time /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL.
Resources Elapsed Time 0:00:01.49

Survival

* Subdivide by tooth.

Get file='D:\pskl\RMatch1955y2001control.sav'.

select if (any(quadrant,'LL','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:08:56
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 21888
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:01.68

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1461            27           1434            98.15
  TOOTH           2          1480            19           1461            98.72
  TOOTH           3          1750            28           1722            98.40
  TOOTH           4          2743            55           2688            97.99
  TOOTH           5          3457           103           3354            97.02
  TOOTH           6          5080           146           4934            97.13
  TOOTH           7          4549           130           4419            97.14
  TOOTH           8          1368            13           1355            99.05

Overall                     21888           521          21367            97.62



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1955 control LL.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1955 control LL.xls.
9 variables and 268 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2






Get file='D:\pskl\RMatch1955y2001control.sav'.

select if (any(quadrant,'LR','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:08:59
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 21922
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:02.56

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1455            23           1432            98.42
  TOOTH           2          1478            18           1460            98.78
  TOOTH           3          1754            29           1725            98.35
  TOOTH           4          2748            57           2691            97.93
  TOOTH           5          3433            78           3355            97.73
  TOOTH           6          5114           180           4934            96.48
  TOOTH           7          4571           148           4423            96.76
  TOOTH           8          1369            13           1356            99.05

Overall                     21922           546          21376            97.51



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1955 control LR.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1955 control LR.xls.
9 variables and 258 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2









Get file='D:\pskl\RMatch1955y2001control.sav'.

select if (any(quadrant,'UL','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:09:02
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 22039
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:01.73

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1498            61           1437            95.93
  TOOTH           2          1511            45           1466            97.02
  TOOTH           3          1788            62           1726            96.53
  TOOTH           4          2785            92           2693            96.70
  TOOTH           5          3433            74           3359            97.84
  TOOTH           6          5108           174           4934            96.59
  TOOTH           7          4543           120           4423            97.36
  TOOTH           8          1373            17           1356            98.76

Overall                     22039           645          21394            97.07



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1955 control UL.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1955 control UL.xls.
9 variables and 282 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2









Get file='D:\pskl\RMatch1955y2001control.sav'.

select if (any(quadrant,'UR','AA')).
KM
  time  BY tooth  /STATUS=failed(1)
  /PRINT NONE
  /PLOT SURVIVAL
  /save Survival(survtoot).

Kaplan-Meier

Notes
Output Created 17-FEB-2003 18:09:12
Comments
Input Data D:\pskl\RMatch1955y2001control.sav
File Label Aggregated File
Filter <none>
Weight <none>
Split File <none>
N of Rows in Working Data File 22015
Syntax KM
time BY tooth /STATUS=failed(1)
/PRINT NONE
/PLOT SURVIVAL
/save Survival(survtoot).
Resources Elapsed Time 0:00:01.79

Survival

 Survival Analysis for TIME

                            Total        Number         Number          Percent
                                         Events        Censored        Censored

  TOOTH           1          1480            41           1439            97.23
  TOOTH           2          1514            46           1468            96.96
  TOOTH           3          1783            55           1728            96.92
  TOOTH           4          2784            90           2694            96.77
  TOOTH           5          3440            88           3352            97.44
  TOOTH           6          5093           159           4934            96.88
  TOOTH           7          4555           138           4417            96.97
  TOOTH           8          1366            10           1356            99.27

Overall                     22015           627          21388            97.15



* Create Excel file for plotting.

select if (failed=1).
sort cases by time tooth.

aggregate outfile=*
 /presorted
 /break time tooth
 /survtoot
  =first(survtoot)
 /n=n.

If (tooth=1) tooth1=survtoot.
If (tooth=2) tooth2=survtoot.
If (tooth=3) tooth3=survtoot.
If (tooth=4) tooth4=survtoot.
If (tooth=5) tooth5=survtoot.
If (tooth=6) tooth6=survtoot.
If (tooth=7) tooth7=survtoot.
If (tooth=8) tooth8=survtoot.

aggregate outfile=*
 /presorted
 /break time
 / tooth1 to tooth8
 = first(tooth1 to tooth8).

SAVE TRANSLATE OUTFILE='I:\Research Projects\longevity\early life 1955 control UR.xls'
  /TYPE=XLS /MAP /REPLACE /FIELDNAMES.

Data written to I:\Research Projects\longevity\early life 1955 control UR.xls.
9 variables and 279 cases written to range: SPSS.
Variable: TIME       Type: Number   Width:  8   Dec: 2
Variable: TOOTH1     Type: Number   Width:  8   Dec: 2
Variable: TOOTH2     Type: Number   Width:  8   Dec: 2
Variable: TOOTH3     Type: Number   Width:  8   Dec: 2
Variable: TOOTH4     Type: Number   Width:  8   Dec: 2
Variable: TOOTH5     Type: Number   Width:  8   Dec: 2
Variable: TOOTH6     Type: Number   Width:  8   Dec: 2
Variable: TOOTH7     Type: Number   Width:  8   Dec: 2
Variable: TOOTH8     Type: Number   Width:  8   Dec: 2